package com.dmap.run.po;

import java.io.Serializable;

public class SwimRecord implements Serializable {
    /**
     * 
     * 表字段 : swim_record.id
     */
    private Long id;

    /**
     * 用户id
     * 表字段 : swim_record.user_id
     */
    private Long userId;

    /**
     * 跑步开始时间
     * 表字段 : swim_record.start_time
     */
    private Long startTime;

    /**
     * 跑步结束时间
     * 表字段 : swim_record.end_time
     */
    private Long endTime;

    /**
     * 总计时间 单位秒
     * 表字段 : swim_record.time_total
     */
    private Integer timeTotal;

    /**
     * 数据来源: 1:手机，2:手表
     * 表字段 : swim_record.data_source
     */
    private Integer dataSource;

    /**
     * 消耗卡路里
     * 表字段 : swim_record.calorie
     */
    private Integer calorie;

    /**
     * 划水次数
     * 表字段 : swim_record.stroke_number
     */
    private Integer strokeNumber;

    /**
     * 划水频率　次/分钟
     * 表字段 : swim_record.stroke_rate
     */
    private Integer strokeRate;

    /**
     * 
     * 表字段 : swim_record.create_time
     */
    private Long createTime;

    /**
     * 
     * 表字段 : swim_record.update_time
     */
    private Long updateTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table swim_record
     *
     * @mbggenerated
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table swim_record
     *
     * @mbggenerated
     */
    public SwimRecord(Long id, Long userId, Long startTime, Long endTime, Integer timeTotal, Integer dataSource, Integer calorie, Integer strokeNumber, Integer strokeRate, Long createTime, Long updateTime) {
        this.id = id;
        this.userId = userId;
        this.startTime = startTime;
        this.endTime = endTime;
        this.timeTotal = timeTotal;
        this.dataSource = dataSource;
        this.calorie = calorie;
        this.strokeNumber = strokeNumber;
        this.strokeRate = strokeRate;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table swim_record
     *
     * @mbggenerated
     */
    public SwimRecord() {
        super();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column swim_record.id
     *
     * @return the value of swim_record.id
     *
     * @mbggenerated
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column swim_record.id
     *
     * @param id the value for swim_record.id
     *
     * @mbggenerated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column swim_record.user_id
     *
     * @return the value of swim_record.user_id
     *
     * @mbggenerated
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column swim_record.user_id
     *
     * @param userId the value for swim_record.user_id
     *
     * @mbggenerated
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column swim_record.start_time
     *
     * @return the value of swim_record.start_time
     *
     * @mbggenerated
     */
    public Long getStartTime() {
        return startTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column swim_record.start_time
     *
     * @param startTime the value for swim_record.start_time
     *
     * @mbggenerated
     */
    public void setStartTime(Long startTime) {
        this.startTime = startTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column swim_record.end_time
     *
     * @return the value of swim_record.end_time
     *
     * @mbggenerated
     */
    public Long getEndTime() {
        return endTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column swim_record.end_time
     *
     * @param endTime the value for swim_record.end_time
     *
     * @mbggenerated
     */
    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column swim_record.time_total
     *
     * @return the value of swim_record.time_total
     *
     * @mbggenerated
     */
    public Integer getTimeTotal() {
        return timeTotal;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column swim_record.time_total
     *
     * @param timeTotal the value for swim_record.time_total
     *
     * @mbggenerated
     */
    public void setTimeTotal(Integer timeTotal) {
        this.timeTotal = timeTotal;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column swim_record.data_source
     *
     * @return the value of swim_record.data_source
     *
     * @mbggenerated
     */
    public Integer getDataSource() {
        return dataSource;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column swim_record.data_source
     *
     * @param dataSource the value for swim_record.data_source
     *
     * @mbggenerated
     */
    public void setDataSource(Integer dataSource) {
        this.dataSource = dataSource;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column swim_record.calorie
     *
     * @return the value of swim_record.calorie
     *
     * @mbggenerated
     */
    public Integer getCalorie() {
        return calorie;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column swim_record.calorie
     *
     * @param calorie the value for swim_record.calorie
     *
     * @mbggenerated
     */
    public void setCalorie(Integer calorie) {
        this.calorie = calorie;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column swim_record.stroke_number
     *
     * @return the value of swim_record.stroke_number
     *
     * @mbggenerated
     */
    public Integer getStrokeNumber() {
        return strokeNumber;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column swim_record.stroke_number
     *
     * @param strokeNumber the value for swim_record.stroke_number
     *
     * @mbggenerated
     */
    public void setStrokeNumber(Integer strokeNumber) {
        this.strokeNumber = strokeNumber;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column swim_record.stroke_rate
     *
     * @return the value of swim_record.stroke_rate
     *
     * @mbggenerated
     */
    public Integer getStrokeRate() {
        return strokeRate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column swim_record.stroke_rate
     *
     * @param strokeRate the value for swim_record.stroke_rate
     *
     * @mbggenerated
     */
    public void setStrokeRate(Integer strokeRate) {
        this.strokeRate = strokeRate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column swim_record.create_time
     *
     * @return the value of swim_record.create_time
     *
     * @mbggenerated
     */
    public Long getCreateTime() {
        return createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column swim_record.create_time
     *
     * @param createTime the value for swim_record.create_time
     *
     * @mbggenerated
     */
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column swim_record.update_time
     *
     * @return the value of swim_record.update_time
     *
     * @mbggenerated
     */
    public Long getUpdateTime() {
        return updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column swim_record.update_time
     *
     * @param updateTime the value for swim_record.update_time
     *
     * @mbggenerated
     */
    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table swim_record
     *
     * @mbggenerated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", startTime=").append(startTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", timeTotal=").append(timeTotal);
        sb.append(", dataSource=").append(dataSource);
        sb.append(", calorie=").append(calorie);
        sb.append(", strokeNumber=").append(strokeNumber);
        sb.append(", strokeRate=").append(strokeRate);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }
}